/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户相册Entity
 * @author 罗天文
 * @version 2018-03-29
 */
public class HkUserAlbum extends DataEntity<HkUserAlbum> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private String name;		// 相册名称
	private String coverPhoto;		// 封面图片
	private Integer rank;		// 序号
	private Integer viewCount;		// 查看总数
	private List<HkUserAlbumContent> hkUserAlbumContentList = Lists.newArrayList();		// 子表列表
	
	public HkUserAlbum() {
		super();
	}

	public HkUserAlbum(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="相册名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=100, message="封面图片长度必须介于 0 和 100 之间")
	public String getCoverPhoto() {
		return coverPhoto;
	}

	public void setCoverPhoto(String coverPhoto) {
		this.coverPhoto = coverPhoto;
	}
	
	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}
	
	public Integer getViewCount() {
		return viewCount;
	}

	public void setViewCount(Integer viewCount) {
		this.viewCount = viewCount;
	}
	
	public List<HkUserAlbumContent> getHkUserAlbumContentList() {
		return hkUserAlbumContentList;
	}

	public void setHkUserAlbumContentList(List<HkUserAlbumContent> hkUserAlbumContentList) {
		this.hkUserAlbumContentList = hkUserAlbumContentList;
	}
}